
from selenium.webdriver.common.by import  By
from common.base import BasePage
from pages.accountPage import AccountPage




class AddShoppingList(BasePage):

    btn=(By.CSS_SELECTOR,'.btn_pink_138x32')

    def add_shopping_list(self):
        # 寻找加入购物车按钮 进行点击
        # 进行跳转到结算界面
        self.getElement(*self.btn).click()

        return AccountPage(self.driver)









if __name__ == '__main__':
   from pages.fristPage import FristPage
   pl=FristPage()
   pl.go_to_loginP().denglu('uroot','w12345678')
   add_shopping_list=AddShoppingList(pl.driver)
   pl.search()
   add_shopping_list.add_shopping_list()
